/**
 *@File ExeUploadInfoDatabase.h
 *
 *@Author: Bob
 *
 *@Create Time: 2017-4-17 17:47:04
 *
 *@Last Modify: Bob
 *
 *@Last Modify Time: 2017-4-17 17:47:04
 *
 *@Description:
 *   
 *
 */

#ifndef EXEUPLOADINFODATABASE_H
#define EXEUPLOADINFODATABASE_H

#include <string>


typedef struct _ExeInfo
{
	std::string strMD5;
	//std::string strFilePath;
	std::string strOriginalFilename;
// 	std::string strFileDescription;
// 	std::string strFileVersion;
// 	std::string strProductName;
// 	std::string strProductVersion;
// 	std::string strLegalCopyright;
// 	std::string strSigner;
}InnerDbInfo;


class SQLiteWrapper;

class ExeUploadInfoDatabase
{
public:
	ExeUploadInfoDatabase();
	virtual ~ExeUploadInfoDatabase();

	static ExeUploadInfoDatabase* GetInstance();

	bool InsertData(InnerDbInfo& innerDb);

	bool QueryData(std::string& strMD5, std::string& strOriginalFileName);

	bool Initialize(std::string& strDBPath);

	void ReleaseHandle();

private:
	SQLiteWrapper* m_pSqliteWrapper;
};



#endif /*end of EXEUPLOADINFODATABASE_H*/ 